package com.egao.common.remark.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @auther ZhaoPeng Wang
 * @create 2022-03-21 21:51:10
 * @description 实体类
 */
@Data
@TableName("t_course_remark")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TCourseRemark implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @TableField("user_id")
    private Integer userId;



    @TableField("name")
    private String name;

    @TableField("content")
    private String content;


    @TableField("course_id")
    private Integer courseId;


    @TableField("create_time")
    private Date createTime;

    @TableField("state")
    private Integer state;

    @TableField("parent_id")
    private Integer parentId;

    @TableField(exist = false)
    private List<TCourseRemark> childrenRemarkList = new ArrayList<>();

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String parentUsername;

    @TableField(exist = false)
    private Integer likesNumber;

}